import Vue from 'vue'

import ElementUI from 'element-ui'
import SvgIcon from 'vue-svgicon'

import '@/assets/icons/components'
import VueStorage from "vue-ls";
import settings from "@/core/config/settings";
import {AppModule} from "@/core/store/modules/app";
import i18n from '@/assets/language'

Vue.use(VueStorage, settings.storage);
Vue.use(ElementUI, {
    size: AppModule.size, // Set element-ui default size
    i18n: (key: string, value: string) => i18n.t(key, value)
});

Vue.use(SvgIcon, {
    tagName: 'svg-icon',
    defaultWidth: '1em',
    defaultHeight: '1em'
});
